package com.zch.user.service;

import java.util.List;
import java.util.Map;

import com.zch.user.entity.User;

/**
 * user业务处理层
 * @author Administrator
 *
 */
public interface UserService {
		//登录判断
	    public Map<String, Object> doLogin(String uName,String password);
		//获取用户列表
		public List<User> getAllUserByPage(String uName,String rName,String tel,int pageIndex);
		//获得总页数
		public int getTotalPages(String uName,String rName,String tel);
		//获得总记录数
		public int getTotalCounts(String uName,String rName,String tel);
		//注册用户
		public boolean addUser(User user);
		//删除用户
		public boolean deleteUser(int uId);
		//修改本用户信息
		public boolean updateUser(User user);
		//获得单个用户
		public User getUser(int uId);
		//获得所有用户列表
		public List<User> getAllUser();
}
